﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeiXinWeb.Helper
{
    public static class SimpleCrypt {
        /// <summary>
        /// 简单加密
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public static string Encode(string s) {
            return new SymmetricMethod().Encrypto(s);
        }

        /// <summary>
        /// 简单解码
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public static string Decode(string s) {
            return new SymmetricMethod().Decrypto(s);
        }
    }
}
